﻿namespace Cos.Module.Form.NHibernate.Test
{
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class FormPageCultureDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapFormPageCultureDataModel()
        {
            new PersistenceSpecification<FormPageCultureDataModel>(Session)
                //.CheckReference(x => x.CultureCode, this.Culture.Id)
                //.CheckReference(x => x.FormPageId, this.FormPage.Id)
                .CheckProperty(x => x.NameLive, "name live")
                .CheckProperty(x => x.NamePreview, "name preview")
                .CheckProperty(x => x.Status, "Approved")
                .CheckProperty(x => x.IsVisibleLive, true)
                .CheckProperty(x => x.IsVisiblePreview, true)
                .VerifyTheMappings();
        }
    }
}
